
methodsdir=${libdir}/apt/methods
methods_PROGRAMS = cdrom copy file ftp gpg gzip bzip2 xz http rsh ssh rsync
if WITH_HTTPS
methods_PROGRAMS += https
endif

AM_CFLAGS = $(WARN_CFLAGS)
AM_CXXFLAGS = $(WARN_CXXFLAGS)
LDADD = ../apt-pkg/libapt-pkg.la

cdrom_SOURCES = cdrom.cc
copy_SOURCES = copy.cc
file_SOURCES = file.cc
gpg_SOURCES = gpg.cc
gzip_SOURCES = gzip.cc
bzip2_SOURCES = $(gzip_SOURCES)
xz_SOURCES = $(gzip_SOURCES)
rsh_SOURCES = rsh.cc rsh.h
ssh_SOURCES = $(rsh_SOURCES)
rsync_SOURCES = rsync.cc rsync-method.h

http_SOURCES = \
	       http.cc \
	       http.h \
	       rfc2553emu.cc \
	       rfc2553emu.h \
	       connect.cc \
	       connect.h
http_LDADD = $(LDADD) @SOCKETLIBS@

if WITH_HTTPS
https_SOURCES = \
	       http.cc \
	       http.h \
	       rfc2553emu.cc \
	       rfc2553emu.h \
	       connect.cc \
	       connect.h
https_LDADD = $(LDADD) @SOCKETLIBS@ @TLSLIBS@
https_CPPFLAGS = -DUSE_TLS
endif

ftp_SOURCES = \
	       ftp.cc \
	       ftp.h \
	       rfc2553emu.cc \
	       rfc2553emu.h \
	       connect.cc \
	       connect.h
ftp_LDADD = $(LDADD) @SOCKETLIBS@
